extends Control


func _on_冲撞_pressed():
	ObjectManager.soundManager.play(SoundType.button_click)
	if !GameUtils.checkIsReadyAction() || !GameUtils.checkActionEnough(SpendData.COST_野猪_IMPACT):
		return
	ObjectManager.gameManager.operationManager.changeOperationType(OperationType.野猪_impact)
	visible = false
	ObjectManager.gameManager.ui.closeDesc()


func _on_冲撞_mouse_entered():
	var ui = ObjectManager.gameManager.ui as UI
	ui.wantShowDesc("冲锋：消耗2点能量，选择一个方向进行冲锋，山地、河流前停止，路径的大子（不分敌我）受到攻击")


func _on_mouse_exited():
	var ui = ObjectManager.gameManager.ui as UI
	ui.closeDesc()
